package main

import (
	"fmt"
)

func main() {
	//固定长度的数组 值拷贝
	var myArray1 [10]int

	myArray2 := [10]int{1, 2, 3, 4}

	for i := 0; i < len(myArray1); i++ {
		fmt.Println(myArray1[i])
	}

	for index, val := range myArray2 {
		fmt.Println("index=", index, ", val=", val)
	}

	fmt.Printf("myArray1 types=%T\n", myArray1)
	fmt.Printf("myArray2 types=%T\n", myArray2)
}
